package com.csdj.t309springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 获奖信息表
 * </p>
 *
 * @author 谭湛宇
 * @since 2022-01-14
 */
@TableName("prize_record")
public class PrizeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 奖品编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 拼图编号
     */
    private Integer jigsawPuzzleId;

    /**
     * 获奖人用户编号
     */
    private Integer prizeWinnerId;

    /**
     * 奖品名称
     */
    private String prizeName;

    /**
     * 奖品图片路径
     */
    private String prizeImageUrl;

    /**
     * 获奖日期
     */
    private LocalDateTime thePrizeWinningDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getJigsawPuzzleId() {
        return jigsawPuzzleId;
    }

    public void setJigsawPuzzleId(Integer jigsawPuzzleId) {
        this.jigsawPuzzleId = jigsawPuzzleId;
    }
    public Integer getPrizeWinnerId() {
        return prizeWinnerId;
    }

    public void setPrizeWinnerId(Integer prizeWinnerId) {
        this.prizeWinnerId = prizeWinnerId;
    }
    public String getPrizeName() {
        return prizeName;
    }

    public void setPrizeName(String prizeName) {
        this.prizeName = prizeName;
    }
    public String getPrizeImageUrl() {
        return prizeImageUrl;
    }

    public void setPrizeImageUrl(String prizeImageUrl) {
        this.prizeImageUrl = prizeImageUrl;
    }
    public LocalDateTime getThePrizeWinningDate() {
        return thePrizeWinningDate;
    }

    public void setThePrizeWinningDate(LocalDateTime thePrizeWinningDate) {
        this.thePrizeWinningDate = thePrizeWinningDate;
    }

    @Override
    public String toString() {
        return "PrizeRecord{" +
            "id=" + id +
            ", jigsawPuzzleId=" + jigsawPuzzleId +
            ", prizeWinnerId=" + prizeWinnerId +
            ", prizeName=" + prizeName +
            ", prizeImageUrl=" + prizeImageUrl +
            ", thePrizeWinningDate=" + thePrizeWinningDate +
        "}";
    }
}
